package com.pm25.response;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

import com.google.gson.reflect.TypeToken;
import com.pm25.response.bean.OnlyAqi;

public class OnlyAqiResponse extends AbstractResponse {
	private List<OnlyAqi> aqi;
	public OnlyAqiResponse(String responseBody) {
		super(responseBody);
	}

	@Override
	public void parseResult() {
		Type type = new TypeToken<ArrayList<OnlyAqi>>() {
		}.getType();
		aqi = gson.fromJson(responseBody, type);
	}

	public List<OnlyAqi> getAqi() {
		return aqi;
	}

	public void setAqi(List<OnlyAqi> aqi) {
		this.aqi = aqi;
	}

}
